package com.soso.base.google.cron.schedule;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * schedule:
 * every N (hours|mins|minutes) ["from" (time) "to" (time)]
 * every day 00:00
 * 
 * every monday 09:00
 * 2nd,third mon,wed,thu of march 17:00
 * 1st monday of sep,oct,nov 17:00
 * 
 * @author speed
 *
 */
public class ScheduleBean implements Serializable{

	private static final long serialVersionUID = -1094056148550614518L;
	private Long id;
	private String taskName;//任务名称
	private String scheduleTime;//计划执行时间
	private Date lastTime;//最后的执行时间
	
	public ScheduleBean(){
		
	}
	public ScheduleBean(String taskName,String scheduleTime){
		this.taskName=taskName;
		this.scheduleTime=scheduleTime;
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public String getScheduleTime() {
		return scheduleTime;
	}
	public void setScheduleTime(String scheduleTime) {
		this.scheduleTime = scheduleTime;
	}
	public Date getLastTime() {
		return lastTime;
	}
	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}
}
